package com.canyou.system.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.canyou.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 机构表
 * </p>
 *
 * @author canyou
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_organization")
@ApiModel(value="Organization对象", description="机构表")
public class Organization extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "上级公司id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "公司名称")
    @TableField("org_name")
    private String orgName;

    @ApiModelProperty(value = "联系人")
    @TableField("contacts")
    private String contacts;

    @ApiModelProperty(value = "联系方式")
    @TableField("tel")
    private String tel;

    @ApiModelProperty(value = "联系地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

}
